﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"> 
<html>
<head>
<title>中国天气预报和万年历扩展</title>
<script type="text/javascript">
if (localStorage['showInTab'] == '1' && !window.location.search) {
    chrome.tabs.create({ url: window.location.href+"?temp",selected:true });
    window.close();
}
</script>
<style>
*{margin: 0;padding: 0;list-style:none;font-weight:normal;line-height:180%;}
img{border:0;}
html{margin:0px auto;}
body{font-family: Verdana, Arial, Helvetica, sans-serif;background-color:transparent;color:#000;font-size:12px;text-align:center;}
a{color:#CACCF7;text-decoration:none;}
a:hover{color:#FF6600;text-decoration:underline;}
em{font-style:normal;color:#000;}
strong{font-weight:bold;color:#000;}
.s360 a #city1{color:#F49700;}
.s360{height:50px;text-align:left;}
.s360 a.black{font-weight:bold;}
.s360 th em{font-weight:bold;}
.s360 th,.s360 td{text-align:left;text-indent:5px;}
.s360 th a,.s360 th{font-weight:bold;color:#F49700;font-size:14px;}
.s360 td.days{text-align:right;}
p{text-align:center;margin-top:13px;}
p select{border:1px solid #A4ABB1;}
p span{margin-top:4px;}
p .button{background:url(img/button.gif) left top no-repeat;width:34px;height:19px;border:0;}
.part{padding:0px 10px 0px 0px;}
.city1{font-size:16px;font-weight:bold;}
.wind1,.wind2,.wind3,.wind4,.wind5{width:120px;color:#BBBBBB;white-space:nowrap; text-overflow:ellipsis; -o-text-overflow:ellipsis; overflow:hidden;}
hr{border:1px solid #F2F2F2;}
b{font-size:15px;font-weight:bold;}
.spanAt{font-size:9px;color:#AAAAAA;}
.atC{font-size:12px;font-weight:bold;}
</style>
<script src="jquery-1.4.2.min.js"></script>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-30677288-1']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
</head>
<body style="margin:0 auto;">
<div id="showDiv"></div>
<hr id="separatorHr" style="display:none" />
<div style="position:relative;">
<iframe id="iframeLunar" style="display:none;border:0px;margin:0px;padding:0px;" marginheight="0" marginwidth="0" scrolling="no" frameborder="0" width="680" height="340"></iframe>
<a href="wannianli.htm" target="_blank" id="newWindowLunar" style="display:none;position:absolute;top:3px;left:200px;">新窗口打开万年历</a>
</div>
<script>
function toggleLunar() {
    var lunar = document.getElementById("iframeLunar");
    if (lunar.style.display) {
        document.getElementById("separatorHr").style.display = "";
        document.getElementById("newWindowLunar").style.display = "";
        document.getElementById('linkLunar').innerText = '︽万年历';
        lunar.src = "wannianli.htm";
        lunar.style.display = "";
    } else {
        document.getElementById("newWindowLunar").style.display = "none";
        document.getElementById("separatorHr").style.display = "none";
        document.getElementById('linkLunar').innerText = '︾万年历';
        lunar.style.display = "none";
    }
    return false;
}

// 显示欢迎页
chrome.extension.getBackgroundPage().checkAndWelcome(false);

function loadHtml(firstTime) {
    var count = parseInt(localStorage["dayCount"] || "5");
    count = Math.max(count, 2.6);
    var bodyWidth = 800 - (5 - count) * 130;
    document.documentElement.style.width = bodyWidth + "px";
    $('#iframeLunar').width(bodyWidth);
    document.getElementById('showDiv').innerHTML = chrome.extension.getBackgroundPage().getInnerHTML();

    if (firstTime && localStorage['showLunar'] == "1") {
        toggleLunar();
    }
}
loadHtml(true);
</script>
<img style="width:1px;height:1px;" src="http://tq.topzj.com/grey.gif" />
</body>
</html>